//
//  MineDescTableViewController.m
//  随拍
//
//  Created by lanou3g on 16/1/20.
//  Copyright © 2016年 Ashoka. All rights reserved.
//

#import "MineDescTableViewController.h"
#import "MineOneTableViewCell.h"
@interface MineDescTableViewController ()

@end

@implementation MineDescTableViewController

NSString *identifierMineDescCell = @"identifierMineDescCell";

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.tableView registerNib:[UINib nibWithNibName:@"MineOneTableViewCell" bundle:nil] forCellReuseIdentifier:identifierMineDescCell];
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {

    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return 5;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
      MineOneTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifierMineDescCell forIndexPath:indexPath];
    
    if (_minecelllist == 2) {
        
        
        cell.igView.image = [UIImage imageNamed:@"cinema"];
        
        cell.contentMode = UIViewContentModeScaleAspectFit;
        
        if (indexPath.row == 0) {
            
            cell.labelOne.text = @"我的账号" ;
            cell.labelOne.font = [UIFont systemFontOfSize:20];
            cell.labelOne.textAlignment = NSTextAlignmentLeft;
            
            
        }else if(indexPath.row == 1){
            
            
            cell.labelOne.text = @"隐私" ;
            cell.labelOne.font = [UIFont systemFontOfSize:20];
            cell.labelOne.textAlignment = NSTextAlignmentLeft;
            
            
        }else if(indexPath.row == 2){
            
            cell.labelOne.text = @"通用";
            cell.labelOne.font = [UIFont systemFontOfSize:20];
            cell.labelOne.textAlignment = NSTextAlignmentLeft;
            
            
        }else if(indexPath.row == 3){
            
            
            cell.labelOne.text = @"意见反馈";
            cell.labelOne.font = [UIFont systemFontOfSize:20];
            cell.labelOne.textAlignment = NSTextAlignmentLeft;
            
            
            
        }else if(indexPath.row == 4){
            
            cell.labelOne.text = @"清除缓存";
            cell.labelOne.font = [UIFont systemFontOfSize:20];
            cell.labelOne.textAlignment = NSTextAlignmentLeft;
            
            
        }
        
        
       return cell;
        
    }else{
    
        return nil;
        
    }
    
   
   
}



-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    
    return 80;
}


/*
// Override to support conditional editing of the table view.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
    // Return NO if you do not want the specified item to be editable.
    return YES;
}
*/

/*
// Override to support editing the table view.
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
    if (editingStyle == UITableViewCellEditingStyleDelete) {
        // Delete the row from the data source
        [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
    } else if (editingStyle == UITableViewCellEditingStyleInsert) {
        // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    }   
}
*/

/*
// Override to support rearranging the table view.
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
}
*/

/*
// Override to support conditional rearranging of the table view.
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
    // Return NO if you do not want the item to be re-orderable.
    return YES;
}
*/

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
